package com.pudding.controller;

import com.pudding.service.ExcelWriteService;
import jakarta.servlet.http.HttpServletResponse;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

@RestController
@RequestMapping("/write")
@RequiredArgsConstructor
public class WriteController {

    private final ExcelWriteService excelWriteService;

    @PostMapping("demo1")
    public void demo1(HttpServletResponse response) {
        excelWriteService.demo1(response);
    }

    @PostMapping("demo2")
    public void demo2(HttpServletResponse response) {
        excelWriteService.demo2(response);
    }

    @PostMapping("demo3")
    public void demo3(HttpServletResponse response) {
        excelWriteService.demo3(response);
    }

    @PostMapping("demo4")
    public void demo4(HttpServletResponse response) {
        excelWriteService.demo4(response);
    }

    @PostMapping("demo5")
    public void demo5(HttpServletResponse response) {
        excelWriteService.demo5(response);
    }

    @PostMapping("demo6")
    public void demo6(HttpServletResponse response) {
        excelWriteService.demo6(response);
    }

    @GetMapping("export")
    public void exportData(HttpServletResponse response){
        excelWriteService.exportData(response);
    }

    @GetMapping("export2")
    public void exportData2(HttpServletResponse response){
        excelWriteService.exportData2(response);
    }

    @GetMapping("export3")
    public void exportData3(HttpServletResponse response){
        excelWriteService.exportData3(response);
    }
}
